package com.yuyou.train.user.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.train.service.api.user.entity.UserDataConfig;

import java.util.List;

@Mapper
public interface UserDataConfigMapper {
    int deleteByPrimaryKey(String id);

    int insert(UserDataConfig record);

    UserDataConfig selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserDataConfig record);
    
    int deleteUserDataConfig(@Param(value="userId") String userId,@Param(value="type") String type);

    int batchInsertUserDataConfig(List<UserDataConfig> userDataConfigList);
    
    List<String> findDataIdByUserIdAndType(@Param(value="userId") String userId,@Param(value="type") String type);

    List<String> findDataNameByUserIdAndType(@Param(value="userId") String userId,@Param(value="type") String type);
}